import request from "@/config/request";

// 登录API
export const login = (data) => {
  return request({
    url: '/auth/login',
    method: 'POST',
    data,
  });
};


// 注册接口
export function register(userData) {
  return request({
    url: '/auth/register',
    method: 'post',
    data: userData
  });
}
